<ion-view view-title="品牌申请" class="brandApply">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
		<ion-nav-buttons side="right">
			<button class="button button-clear saveText" on-tap="submit()">保存</button>
		</ion-nav-buttons>
	</ion-nav-bar>
	
	<ion-content class="bg">
		<div class="list">
			<li class="item">
				<div class="row">
					<div class="nameCol">
						申请品牌
					</div>
					<div class="col catTip" on-tap="openbrandOrderBy()">
						{{input.brand.name}}<img class="jt" src="./img/guilin/common/icon_right@2x.png" ng-class="{'invisible':input.id}"/>
					</div>
				</div>
			</li>
			
			<li class="item mt10 text-align-my">
				<div class="row">
					<div class="nameCol">
						品牌描述
					</div>
					<!-- style="max-height: 100px;overflow: auto;"-->
					<div class="col">
						<!--{{input.brand.brand_desc}}-->
						<textarea rows="5" ng-model="input.brand.brand_desc" ng-disabled="true"></textarea>
					</div>
				</div>
			</li>
			
			<!--1、品类-->
			<li class="item mt10">
				<div class="row">
					<div class="nameCol">
						品类
					</div>
					<div class="col catTip" on-tap="showSelectCat()">
						请添加<img class="jt" src="{{isShowSelectCat?'./img/guilin/common/icon_up@2x.png':'./img/guilin/common/icon_down@2x.png'}}" />
					</div>
				</div>
			</li>
			<div ng-if="isShowSelectCat">
				<li class="item">
					<div class="row">
						<div class="nameCol">
							&nbsp;
						</div>
						<div class=" item-input item-select catTip" data-tap-disabled="true" style="padding:0 30px 0 15px;width:100%;">
								<div class="input-value" ng-click="doSelectCat1()">{{input.cat1.name}}</div>
							</div>
					</div>
				</li>
				<li class="item">
					<div class="row">
						<div class="nameCol hideLine">
							&nbsp;
						</div>
						<div class=" item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;width:100%;">
								<div class="input-value" ng-click="doSelectCat2()">{{input.cat2.name}}</div>
							</div>
					</div>
				</li>
				<li class="item">
					<div class="row">
						<div class="nameCol hideLine">
							&nbsp;
						</div>
						<div class=" item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;width:100%;">
								<div class="input-value" ng-click="doSelectCat3()">{{input.cat3.name}}</div>
							</div>
					</div>
				</li>
				<!--按钮-->
				<li class="item">
					<div class="row">
						<div class="nameCol hideLine">
							&nbsp;
						</div>
						<div class="col">
							<span class="btn blue" on-tap="add_type()">确定</span>
							<span class="btn grab right-zhang" on-tap="showSelectCat()">取消</span>
						</div>
					</div>
				</li>
			</div>
			
			<li class="item selected" ng-repeat="cat in cats"><!--显示 。保存过的品牌，品类、区域只能增加，不能删除-->
				{{cat}}<img class="delIcon" src="./img/guilin/common/icon_delete_g@2x.png" ng-if="!input.id||$index>=scope.goods_cat.length" on-tap="delete_cat($index)"/>
			</li>
			
			<!--2、区域-->
			<li class="item mt10">
				<div class="row">
					<div class="nameCol">
						区域
					</div>
					<div class="col catTip" on-tap="showSelectRegion()">
						请添加<img class="jt" src="{{isShowSelectRegion?'./img/guilin/common/icon_up@2x.png':'./img/guilin/common/icon_down@2x.png'}}" />
					</div>
				</div>
			</li>
			<div ng-if="isShowSelectRegion">
				<li class="item">
					<div class="row">
						<div class="nameCol">
							&nbsp;
						</div>
						<div class=" item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;width:100%;">
								<div class="input-value" ng-click="doSelectProvince()">{{input.province.name}}</div>
							</div>
					</div>
				</li>
				<li class="item">
					<div class="row">
						<div class="nameCol hideLine">
							&nbsp;
						</div>
						<div class=" item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;width:100%;">
								<div class="input-value" ng-click="doSelectCity()">{{input.city.name}}</div>
							</div>
					</div>
				</li>
				<li class="item">
					<div class="row">
						<div class="nameCol hideLine">
							&nbsp;
						</div>
						<div class=" item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;width:100%;">
								<div class="input-value" ng-click="doSelectDistrict()">{{input.district.name}}</div>
							</div>
					</div>
				</li>
				<!--按钮-->
				<li class="item">
					<div class="row">
						<div class="nameCol hideLine">
							&nbsp;
						</div>
						<div class="col">
							<span class="btn blue" on-tap="add_region()">确定</span>
							<span class="btn grab right-zhang" on-tap="showSelectRegion()">取消</span>
						</div>
					</div>
				</li>
			</div>
			
			<li class="item selected" ng-repeat="region in regions"><!--显示 -->
				{{region}}<img class="delIcon" src="./img/guilin/common/icon_delete_g@2x.png" ng-if="!input.id||$index>=scope.store_region.length" on-tap="delete_region($index)"/>
			</li>
			
		</div>
	</ion-content>
</ion-view>